Permalink
Browse files

action script fixes. we should have no exit in the scripts for stweak…

…s to work faster
  • Loading branch information...
1 parent 4b33a7a commit 4053da8c08aebccf95a0a8060c47c3bbb1c5e855 @gokhanmoral committed Nov 7, 2012
@@ -1,9 +1,6 @@
#!/sbin/busybox sh
-if [ "a$2" == "a" ];then
-echo $soundgasm_hp
-exit
-fi
+if [ "a$2" != "a" ];then
soundgasm_hp=$2
@@ -42,4 +39,5 @@ case "$soundgasm_hp" in
;;
esac;
+fi
echo $soundgasm_hp
@@ -1,9 +1,6 @@
#!/sbin/busybox sh
-if [ "a$2" == "a" ];then
-exit
-fi
-
+if [ "a$2" != "a" ];then
filename=$(basename $2)
if [ "a$3" == "a" ];then
@@ -18,5 +15,6 @@ else
echo $3 > $2
fi
fi
+fi
@@ -1,9 +1,6 @@
#!/sbin/busybox sh
-if [ "a$2" == "a" ];then
-exit
-fi
-
+if [ "a$2" != "a" ];then
filename=$(basename $2)
if [ "a$3" == "a" ];then
@@ -25,5 +22,6 @@ else
esac;
fi
fi
+fi
@@ -1,8 +1,6 @@
#!/sbin/busybox sh
-if [ "a$2" == "a" ];then
-exit
-fi
+if [ "a$2" != "a" ];then
if [ "a$3" == "a" ];then
evalcmd='eval "echo \$$2"'
@@ -24,3 +22,4 @@ else
fi
fi
+fi

0 comments on commit 4053da8

Please sign in to comment.