fix sulinstrapt for debian

üst a2dbd2f0
#!/bin/sh #!/bin/bash
#sulinstrapt betiği ile sulinos chroot oluşturabilirsiniz veya diskinize kurulum yapabilirsiniz #sulinstrapt betiği ile sulinos chroot oluşturabilirsiniz veya diskinize kurulum yapabilirsiniz
if [ "$1" == "" ] || [ "$1" == "-*" ] if [[ "$1" == "" || "$1" == "-*" ]]
then then
echo "Usage: sulinstrapt [directory]" echo "Usage: sulinstrapt [directory]"
exit 0 exit 0
fi fi
sulin="$1" sulin="$1"
if [ $UID -ne 0 ] if [[ $UID -ne 0 ]]
then then
echo "You must be root!" echo "You must be root!"
exit 1 exit 1
fi fi
if [ -d "$sulin" ] if [[ -d "$sulin" ]]
then then
echo "$sulin already exist" echo "$sulin already exist"
fi fi
if [ -f "$sulin" ] if [[ -f "$sulin" ]]
then then
echo "$sulin is a file. You must delete or move." echo "$sulin is a file. You must delete or move."
exit 1 exit 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment