Commits

Anonymous committed 33b6b31

added quiet directory changing.

  • Participants
  • Parent commits c73dd2f

Comments (0)

Files changed (1)

scripts/unicorn-service

   fi
 }
 
+qpushd () {
+  pushd "$1" &> /dev/null
+}
+
+qpopd () {
+  popd &> /dev/null
+}
+
 getFile () {
   dest=$1
   src=$2
 
     echo "Removing service '${serviceName}'"
 
-    cd /service/${serviceName}
+    qpushd /service/${serviceName}
     rm -rf /service/${serviceName}
 
     svc -dx . log
     sleep 5
 
-    cd -
+    qpopd
 
     echo "Service '${serviceName}' removed."