OS
Alpine 명령어
바리새인
2021. 12. 11. 09:20
usb 마운트
fdisk -l
mkdir /mnt/usb
mount /dev/sdc1 /mnt/usb
failed: Invalid argument 에러 발생
mount -t -vfat /dev/sdc1 /mnt/usb
변수 설정
result=`kubectl get secret -n {namespace} --kubeconfig=docker/config | grep {pod이름}`
echo ${result}
if else
https://linuxhandbook.com/if-else-bash/
Using If Else in Bash Scripts [Examples]
In this chapter of bash beginner series, you'll learn about using if-else, nested if else and case statements in bash scripts.
linuxhandbook.com
https://www.tutorialspoint.com/unix/if-else-statement.htm
#/bin/sh
result=`kubectl get secret -n {namespace} | grep {pod이름}`
# 결과값이 없으면
if [ "" != "${result}" ]
then
echo ${result}
else
echo "There is"
fi